class AbstractBase < ActiveRecord::Base
  @@visible_fields = Array.new
	def initialize(params = nil)
		super(params)
	end
	def self.content_columns		
  	@content_columns ||= columns.reject { |c| c.primary || c.name =~ /(_id|_count)$/ || c.name == inheritance_column || @@visible_fields.index(c.name) == nil }
  end
  def self.visible_fields
    @@visible_fields.sort
  end
end
